package com.ssy.invoicing.order.bean;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.ssy.invoicing.common.util.JsonDateSerializer;

/**
 * 销售订单对应的产品
 * Comment of SaleProductBean
 * @author suoyao.shen
 */
public class PurchaseProductBean {

    private Integer id;
    /**
     * 合同号
     */
    private String contractNumber;
    private String pname;
    private String pattern;
    /*
     * 销售数量
     */
    private Integer saleCount;
    /*
     * 销售价格
     */
    private String  salePrice;
    /*
     * 总价
     */
    private String  totalPrice;
    /*
     * 交货日期
     */
    private Date    deliverTime;
    
    /**
     * 供应商
     */
    private String suppliers;
    
    /*
     * 备注
     */
    private String  remark;
    private Integer purchaseId;
    
    public PurchaseProductBean() {super();}
    
    public PurchaseProductBean(String _contractNumber, String _pname, String _pattern, Integer _saleCount, String _salePrice,
                           String _totalPrice, Date _deliverTime,String _suppliers, String _remark, Integer _purchaseId) {
        this.contractNumber = _contractNumber;
        this.pname = _pname;
        this.pattern = _pattern;
        this.saleCount = _saleCount;
        this.salePrice = _salePrice;
        this.totalPrice = _totalPrice;
        this.deliverTime = _deliverTime;
        this.suppliers = _suppliers;
        this.remark = _remark;
        this.purchaseId = _purchaseId;
    }
    
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public String getContractNumber() {
        return contractNumber;
    }

    public void setContractNumber(String contractNumber) {
        this.contractNumber = contractNumber;
    }

    public String getPname() {
        return pname;
    }
    
    public void setPname(String pname) {
        this.pname = pname;
    }
    
    public String getPattern() {
        return pattern;
    }
    
    public void setPattern(String pattern) {
        this.pattern = pattern;
    }
    
    public Integer getSaleCount() {
        return saleCount;
    }
    
    public void setSaleCount(Integer saleCount) {
        this.saleCount = saleCount;
    }
    
    public String getSalePrice() {
        return salePrice;
    }
    
    public void setSalePrice(String salePrice) {
        this.salePrice = salePrice;
    }
    
    public String getTotalPrice() {
        return totalPrice;
    }
    
    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }
    
    @JsonSerialize(using=JsonDateSerializer.class)
    public Date getDeliverTime() {
        return deliverTime;
    }
    
    public void setDeliverTime(Date deliverTime) {
        this.deliverTime = deliverTime;
    }
    
    public String getSuppliers() {
        return suppliers;
    }

    public void setSuppliers(String suppliers) {
        this.suppliers = suppliers;
    }

    public String getRemark() {
        return remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(Integer purchaseId) {
        this.purchaseId = purchaseId;
    }
    
}
